package BinaryOperators;

public class ExpFunction implements Function{
	final int EXP_BAS = 2;
	
	@Override
	public double Execute(double[] args) {
		if(args.length != 1){
			//TODO handle Exception:
			throw new IndexOutOfBoundsException();
		}else 
			return Math.pow(EXP_BAS, args[0]);
		}	

}
